﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApplication1
{
    public class Item
    {
        public string Name
        {
            get
            {
                return "one";
            }
        }
    }
    /// <summary>
    /// Interaction logic for B2.xaml
    /// </summary>
    public partial class B2 : UserControl
    {


        public IEnumerable<object> MyArrayObject
        {
            get
            {
                return (IEnumerable<object>)GetValue(MyArrayObjectProperty);
            }
            set { SetValue(MyArrayObjectProperty, value); }
        }

        // Using a DependencyProperty as the backing store for MyArrayObject.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty MyArrayObjectProperty =
            DependencyProperty.Register("MyArrayObject", typeof(IEnumerable<object>), typeof(B2), new UIPropertyMetadata(null, delegate { }));


        public B2()
        {
            InitializeComponent();
            this.MyArrayObject = new Item[10];
        }
    }
    
}